package com.java.hibernate.dao;

import com.java.hibernate.entity.User;

import java.util.List;

/**
 * @Author: Dgg
 * @Date: 2022/4/22 21:35
 */

public interface UserDao {
	List<User> getAllBooks();

	User getBookById(int bookId);

	void addBook(User book);

	void updateBook(User book);

	void deleteBook(int bookId);

	boolean bookExists(String title, String category);

}
